package com.naicheng.ivote.views;

import android.content.Intent;
import android.view.View;
import android.widget.RelativeLayout;

import com.naicheng.ivote.R;
import com.naicheng.ivote.engin.BaseActivity;
import com.naicheng.ivote.utils.AppManager;
import com.naicheng.ivote.utils.MyPreferences;

public class MySetActivity extends BaseActivity {
	
	MySetActivity CTMSA=MySetActivity.this;
	private MyPreferences preference;
	AppManager appManager = AppManager.getAppManager();
	
	private RelativeLayout myset_main_acountset;
	private RelativeLayout myset_main_notice;
	private RelativeLayout myset_main_theme;
	private RelativeLayout myset_main_version;
	private RelativeLayout myset_main_user;
	private RelativeLayout myset_main_aboutme;
	
	
	
	
	@Override
	protected void setConentView() {
		setContentView(R.layout.activity_myset);
	}
	@Override
	protected void init() {
		
		preference=MyPreferences.getPrefer(CTMSA, "myconfig");
		
		myset_main_acountset=(RelativeLayout) findViewById(R.id.myset_main_acountset);
		myset_main_notice=(RelativeLayout) findViewById(R.id.myset_main_notice);
		myset_main_theme=(RelativeLayout) findViewById(R.id.myset_main_theme);
		myset_main_version=(RelativeLayout) findViewById(R.id.myset_main_version);
		myset_main_user=(RelativeLayout) findViewById(R.id.myset_main_user);
		myset_main_aboutme=(RelativeLayout) findViewById(R.id.myset_main_aboutme);
		
	}
	@Override
	protected void processLogic() {
		
		
	}
	@Override
	protected void setOnClickListener() {
		
		myset_main_acountset.setOnClickListener(CTMSA);
		myset_main_notice.setOnClickListener(CTMSA);
		myset_main_theme.setOnClickListener(CTMSA);
		myset_main_version.setOnClickListener(CTMSA);
		myset_main_user.setOnClickListener(CTMSA);
		myset_main_aboutme.setOnClickListener(CTMSA);
		
	}
	@Override
	public void onClick(View v) {
		
		switch (v.getId()) {
		case R.id.myset_main_acountset:
			
			break;
		case R.id.myset_main_notice:
			
			break;
		case R.id.myset_main_theme:
			
			break;
		case R.id.myset_main_version:
			
			break;
		case R.id.myset_main_user:
			
			break;
		case R.id.myset_main_aboutme:
			startActivity(new Intent(CTMSA,AboutUsActivity.class));
			break;

		
		}
		
	}

	
	
}
